/* cmdbuf.h */

#ifndef _CMDBUF_H
#define _CMDBUF_H

#define CMD_BUF_CAP 128

typedef struct cmd_buf{
	char cmd[CMD_BUF_CAP+1];
	int arg_value;
	int len;
} cmd_buf_t;

int cmd_buf_add_key(cmd_buf_t * buf, int key);
int cmd_buf_reset(cmd_buf_t * buf);

#endif /* _CMDBUF_H */
